#include <iostream>
#include <yaml-cpp/yaml.h>

#include "BasicYaml.hpp"

int main(int argc, char** argv)
{
    if(argc == 1){        
        YAML::Emitter out;
        out << "Hello, World!";
        
        out << YAML::BeginSeq;
        out << "eggs";
        out << "bread";
        out << "milk";
        out << YAML::EndSeq;
        
        std::cout << "Here's the output YAML:\n" << out.c_str();
        
        YAML::Emitter out2;
        out2 << YAML::BeginMap;
        out2 << YAML::Key << "name";
        out2 << YAML::Value << "Dollores Ibarruri";
        out2 << YAML::Key << "position";
        out2 << YAML::Value << "spy";
        out2 << YAML::Key << "children";
        out2 << YAML::Value << YAML::BeginSeq << "Sasha" << "Malia" << YAML::EndSeq;
        out2 << YAML::EndMap;
        
        std::cout << "Here's the second output YAML:\n" << out2.c_str();
    }else{
        MonsterParser monsterParser;
        monsterParser.parse(argv[1]);
    }
    return 0;
}
